import java.util.ArrayList;
import info.gridworld.actor.Actor;
import info.gridworld.grid.Location;
public class Nuke extends Actor{
	private static int price = 5000;
	public static int getPrice(){
		return price;
	}
	public void activate(){
		ArrayList<Enemy> enemies = new ArrayList();
		ArrayList<Location> locs = getGrid().getOccupiedLocations();
		for(int x = 0;x<locs.size();x++)
			enemies.add((Enemy) getGrid().get(locs.get(x)));
		for(int y = enemies.size()-1;y>=0;y--){
			if(enemies.get(y) instanceof Enemy)
				enemies.get(y).die();
		}
	}
}
